import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import 'package:tarantulas/goodlook/GoodLook.dart';

import 'main.dart';
import 'mainpage/mainpage.dart';
//import 'setting/setting.dart';

class Routes {
  static Router router;
  static String rootPage = '/';
  static String login = '/login/login';
  static String mainpage = '/mainpage/mainpage';
  static String setting = '/setting/setting';
  static String goodlook = 'goodlook';

//  static var loginHandler = Handler(
//      handlerFunc: (BuildContext context, Map<String, List<String>> params) {
//    return Login();
//  });
  static var mainPageHandler = Handler(
      handlerFunc: (BuildContext context, Map<String, List<String>> params) {
    return MainPage();
  });
  static var goodLookPageHandler = Handler(
      handlerFunc: (BuildContext context, Map<String, List<String>> params) {
    return GoodLook();
  });

  static void configureRoutes(Router router) {
    router.define(rootPage,
        handler: Handler(handlerFunc: (context, params) => PageRoot()));

    router.define(mainpage, handler: mainPageHandler);
    router.define(goodlook, handler: goodLookPageHandler);
    Routes.router = router;
  }
}
